package com.icss.train_sys_back.service.ticket_manage;

import com.icss.train_sys_back.entity.home.MyTicketEntity;
import com.icss.train_sys_back.entity.ticket_manage.TicketEntity;
import com.icss.train_sys_back.entity.train_manage.StationEntity;

import java.util.List;
import java.util.Map;

/**
 * @Author 小泽
 * @createTime 2025/10/2 14:15
 */
public interface TicketManageService {
    //车票分页+条件查询
    List<TicketEntity> getListConditions(String trainNumberId, String startStationId, Integer endStationId, Integer status);

    //更新车票信息
    void update(TicketEntity ticket);

    //更新车票状态
    boolean changeStatus(String ticketId, Integer ticketStatus);

    //删除车票
    boolean deleteByTicketId(String ticketId);

    //添加车票
    boolean add(TicketEntity ticket);

    // 根据城市获取列车票务信息
    List<TicketEntity> getTrainTickets(String startCity, String endCity, String goDate);

    //查询本人车票
    List<MyTicketEntity> listByUserId(Integer userId);

    // 批量插入
    void batchAdd(List<TicketEntity> ticketEntityList);
}
